<?php
  include_once("./libraries/util.inc.php");
  include_once("./libraries/authentication.inc.php");

  session_start();
  sessionAuthenticate("login.php");  

  printHeader("Find Files Used by a Job");
  cdbBody();
  cdbSetUp();
?>

<!-- ***** BODY GOES FROM HERE UNTIL NEXT COMMENT WITH *'S ***** -->
<font size=+3>
<p><b><center>Find Files Used by a Job</center></b></p>
</font>

<form action="provFileSearchForJobByFileName.php" method="get">
  <p><b>Search for a job by command file:</b> Find jobs based on the name
    and/or path of the command file. A partial name or path is 
    adequate.</p>
  <table border="0" cellspacing="4">
    <tr>
      <td>File Name:</td><td><input type="text" name="fileName" /></td>
    </tr>
    <tr>
      <td>File Path:</td><td><input type="text" name="filePath" /></td>
    </tr>
    <tr>
      <td></td>
      <td align="center"><input type="submit" value="Find Jobs"></td>
    </tr>
  </table>
</form>

<p><b>OR</b>

<form action="provFileSearchForJobByDate.php" method="get">
  <p><b>Search for a job by date:</b> Enter the start and end dates for 
    the date range to search for the job.</p>
  <table border="0" cellspacing="4">
    <tr>
      <td>Start Date (yyyy-mm-dd):</td>
      <td><input type="text" name="startDate" /></td>
    </tr>
    <tr>
      <td>End Date (yyyy-mm-dd):</td>
      <td><input type="text" name="endDate" /></td>
    </tr>
    <tr>
      <td></td>
      <td align="center"><input type="submit" value="Find Jobs"></td>
    </tr>
  </table>    
</form>

<p><b>OR</b>

<form action="provFilesByJobAction.php" method="get">
  <table>
    <tr>
      <td><b>Enter a Global Job Id:</b></td>
      <td><input type="text" name="gjid" /></td>
    </tr>
    <tr>
      <td></td>
      <td align="center"><input type="submit" value="Find Files"></td>
    </tr>
  </table>

  <p>&nbsp;
</form>

<p>Back to the <a href="./provenance.php">Provenance</a> home page

<!-- ***** END OF BODY ***** -->
<?php
  cdbFinishPage();
?>
